package com.yangxk.kadmin.common.enumeration;

/**
 * 公共异常返回信息
 *
 * @author yangxk
 * @date 2018/9/5 21:35
 */
public enum CommonExceptionEnum implements BaseExceptionEnum{
    SUCCESS(0, "success"),

    ERROR(-1, "服务器异常")
    ;

    private int code;
    private String message;

    CommonExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
